package com.ambow.Entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table
public class Student extends ID implements Serializable {
   private String number;
   private String sname;
   private String sex;
   private String birthdate;
   private String nativeplace;
   private String address;
   private String tel;
   @ManyToOne(targetEntity=Bclass.class)
   @JoinColumn(name="bclass_id",referencedColumnName="id")
   private Bclass bclass;
   @OneToMany(mappedBy="student")
   private Set<BookFee> bookFees=new HashSet<BookFee>();
   @OneToMany(targetEntity=DeliverToStudent.class,mappedBy="student")
   private Set<DeliverToStudent> deliverStudents=new HashSet<DeliverToStudent>();//学生出库
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBirthdate() {
		return birthdate;
	}
	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}
	public String getNativeplace() {
		return nativeplace;
	}
	public void setNativeplace(String nativeplace) {
		this.nativeplace = nativeplace;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Bclass getBclass() {
		return bclass;
	}
	public void setBclass(Bclass bclass) {
		this.bclass = bclass;
	}
	public Set<BookFee> getBookFees() {
		return bookFees;
	}
	public void setBookFees(Set<BookFee> bookFees) {
		this.bookFees = bookFees;
	}
	public Set<DeliverToStudent> getDeliverStudents() {
		return deliverStudents;
	}
	public void setDeliverStudents(Set<DeliverToStudent> deliverStudents) {
		this.deliverStudents = deliverStudents;
	}
	   
   
   
   
}
